package com.woniu.commentorder.service.serviceImp;

import com.hc.entity.Paper;
import com.hc.vo.PaperVo;
import com.woniu.commentorder.mapper.PaperMapper;
import com.woniu.commentorder.service.Paperservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PaperServiceImp implements Paperservice {
    @Autowired
    private PaperMapper paperMapper;

    @Override
    public List<Paper> seleByCon(Paper paper) {
        return paperMapper.selectByCon(paper);
    }
    @Override
    public List<Paper> seleByVo(PaperVo paperVo) {
        return paperMapper.selectByVo(paperVo);
    }
    @Override
    public List<Paper> seleAllByCon(Paper paper) {
        return paperMapper.selectAllByCon(paper);
    }

    @Override
    public void inform(int id) {
        paperMapper.inform(id);
    }


}
